package com.rajaev.dtu.tractor.domain.entity.event;


import com.rajaev.dtu.tractor.domain.entity.BatteryPo;
import com.rajaev.dtu.tractor.infrastructure.base.enums.DataSyncStateEnum;
import lombok.Data;

/**
 * @author tianjie
 */
@Data
public class SaveBatteryEvent {

    /**
     * 修改/删除
     */
    DataSyncStateEnum dataSyncStateEnum;
    private BatteryPo batteryPo;

    public SaveBatteryEvent(BatteryPo batteryPo, DataSyncStateEnum dataSyncStateEnum) {
        this.batteryPo = batteryPo;
        this.dataSyncStateEnum = dataSyncStateEnum;
    }

}